<?php
/**
 * top.phtml
 * 
 * top partial for admin
 * 
 * @category    Madoqua
 * @package     Layout
 * @subpackage  Admint
 */
?>
<div id="top">
    <h1>
        <a href="<?php echo $this->url(array(), 'blog_admin', true); ?>">
            <span>
                <?php echo $this->config()->name; ?>
            </span>
        </a>
    </h1>
    
    <?php echo $this->partial('admin/partials/menu.phtml'); ?>

    <div id="info">
        <p class="name">
            logged in as 
            <a href="<?php echo $this->url(array('controller' => 'user'), 'blog_admin', true); ?>">
                <?php echo $this->placeholder('madoqua')->user->username; ?>
            </a>
        </p>
        <p class="logout">
            <a href="<?php echo $this->url(array('controller' => 'auth', 'module' => 'auth', 'action' => 'logout'), 'default', true); ?>">logout</a>
        </p>
        <p class="view-site">
            <a href="<?php echo $this->urlHome(); ?>">View Site</a>
        </p>
    </div>

</div>

<?php echo $this->adminNavigation(); ?>